function printnmpd(text)
	print("NMPD: "..text)
	logfile = io.open("serverlog.txt","a*")
	if logfile ~= nil then
		logfile:write("NMPD: "..text.."\n")
		logfile:close()
	end
end
local file, err = loadfile("server.lua")
if not file then printnmpd(err) else pcall(file) end
